package top.jiangqiang.qianyi.common.id;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class IdGeneratorAutoConfiguration {
    @Bean
    @ConditionalOnMissingBean(IDGenerator.class)
    IDGenerator idGenerator() {
        return DefaultIDGenerator.getInstance();
    }
}
